Clean up unneeded ns_set_icon_type calls.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 29 Mar 2010 23:48:44 +0000 (19:48 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 29 Mar 2010 23:48:44 +0000 (19:48 -0400)
commit8a4e656ef0959c3855ab816c4aa87ab6ef6cea09
treeb39b941812a2c20da46d9f4c4d583bf878b01910
parent4177822974e1619dbeda171af1caac25f5aeef55
Clean up unneeded ns_set_icon_type calls.

Patch from Adrian Robert, see
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01391.html

* xdisp.c (x_consider_frame_title, update_window_cursor): Remove
HAVE_NS conditionals.
(prepare_menu_bars)[HAVE_NS]: Call ns_set_doc_edited.

* nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
filename for the title.
(ns_set_doc_edited): Do nothing if the selected window is a
minibuffer window.

* nsterm.h: Add prototypes for ns_set_name_as_filename and
ns_set_doc_edited.

* nsterm.m: Remove unneeded prototype.
src/ChangeLog
src/nsfns.m
src/nsterm.h
src/nsterm.m
src/xdisp.c